﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeBehind="TrinhDoDaoTao.aspx.cs" Inherits="WTSQCB.TrinhDoDaoTao" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        &nbsp; Quản lý trình độ đào tạo</p>
    <p>
        <asp:GridView ID="TrinhDoGridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="MaTrinhDo" DataSourceID="SqlDataSource1" OnSelectedIndexChanged="TrinhDoGridView1_SelectedIndexChanged" Width="980px" AllowPaging="True" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4">
            <Columns>
                <asp:CommandField ShowSelectButton="True" ButtonType="Button" SelectText="CHỌN" />
                <asp:BoundField DataField="MaTrinhDo" HeaderText="Mã trình độ" ReadOnly="True" SortExpression="MaTrinhDo" />
                <asp:BoundField DataField="TenTrinhDo" HeaderText="Tên trình độ" SortExpression="TenTrinhDo" />
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
    </p>
    <p>
        &nbsp;
        <asp:Button ID="ThemButton1" runat="server" OnClick="ThemButton1_Click" Text="THÊM" Width="80px" />
        &nbsp;
        <asp:Button ID="SuaButton2" runat="server" OnClick="SuaButton2_Click" Text="SỬA" Width="80px" />
        &nbsp;
        <asp:Button ID="XoaButton3" runat="server" OnClick="XoaButton3_Click" Text="XÓA" OnClientClick="return confirm('Ban co muon xoa khong ?')" Width="80px"/>
    </p>
    <p>
        &nbsp;
        <asp:Label ID="Label1" runat="server" Text="Mã trình độ:"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="MaTrinhDoTextBox1" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="MaTrinhDoTextBox1" ErrorMessage="RequiredFieldValidator" ForeColor="Red">Mã trình độ không được để trống</asp:RequiredFieldValidator>
    </p>
    <p>
        &nbsp; Tên trình độ:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TenTrinhDoTextBox2" runat="server" style="margin-left: 0px" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TenTrinhDoTextBox2" ErrorMessage="RequiredFieldValidator" ForeColor="Red">Tên trình độ không được để trống</asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:WebDiemTSQCBConnectionString %>" SelectCommand="SELECT * FROM [TrinhDoDaoTao]"></asp:SqlDataSource>
    </p>
</asp:Content>
